package o2o.dao.PO.code;

/**
 * Created with IntelliJ IDEA.
 *
 * @User: @Created by yangtk
 * @Date: @Date 2020/12/1 11:07
 * @Email: yangtongkuan@qq.com
 * @To change this template use File | Settings | File Templates.
 * @desc
 */
public class TableCodeSequenceInfo {

    /**
     CREATE TABLE table_code_sequence(
     `id` INT(11) AUTO_INCREMENT NOT NULL COMMENT 'id',
     `type` VARCHAR(128) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '类型',
     `code` VARCHAR(128) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT 'code 值',
     `sequence` INT(11) NOT NULL DEFAULT '0'  COMMENT '序列',
     `desc` VARCHAR(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '描述',
     `fVersion` INT(4) DEFAULT '0' COMMENT '版本',
     `delFlag` INT(1) DEFAULT '0' COMMENT '是否删除',
     `createUser` VARCHAR(64) DEFAULT NULL COMMENT '创建者',
     `createTime` BIGINT(15) NOT NULL COMMENT '创建日期  141231212423423时间戳毫秒级标识',
     `updateUser` VARCHAR(22) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '最后更新着',
     `updateTime` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '最后更新时间',
     PRIMARY KEY (`id`),
     UNIQUE KEY key_type(`type`,`key`,delFlag)
     ) ENGINE=INNODB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
     */
    private Long id;
    private String type;                    // 类型
    private String code;                     // key
    private Integer sequence;               // 序列号
    private Integer fVersion = 0;            // 版本
    private String desc;
    private int delFlag;
    private String createUser;
    private Long createTime;
    private String updateUser;


    public Long getId() {
        return id;
    }

    public TableCodeSequenceInfo setId(Long id) {
        this.id = id;
        return this;
    }

    public String getType() {
        return type;
    }

    public TableCodeSequenceInfo setType(String type) {
        this.type = type;
        return this;
    }

    public String getCode() {
        return code;
    }

    public TableCodeSequenceInfo setCode(String code) {
        this.code = code;
        return this;
    }

    public Integer getSequence() {
        return sequence;
    }

    public TableCodeSequenceInfo setSequence(Integer sequence) {
        this.sequence = sequence;
        return this;
    }

    public Integer getfVersion() {
        return fVersion;
    }

    public TableCodeSequenceInfo setfVersion(Integer fVersion) {
        this.fVersion = fVersion;
        return this;
    }

    public String getDesc() {
        return desc;
    }

    public TableCodeSequenceInfo setDesc(String desc) {
        this.desc = desc;
        return this;
    }

    public int getDelFlag() {
        return delFlag;
    }

    public TableCodeSequenceInfo setDelFlag(int delFlag) {
        this.delFlag = delFlag;
        return this;
    }

    public String getCreateUser() {
        return createUser;
    }

    public TableCodeSequenceInfo setCreateUser(String createUser) {
        this.createUser = createUser;
        return this;
    }

    public Long getCreateTime() {
        return createTime;
    }

    public TableCodeSequenceInfo setCreateTime(Long createTime) {
        this.createTime = createTime;
        return this;
    }

    public String getUpdateUser() {
        return updateUser;
    }

    public TableCodeSequenceInfo setUpdateUser(String updateUser) {
        this.updateUser = updateUser;
        return this;
    }
}
